<!DOCTYPE html>
<html>
  <head>
    <meta charset="utf-8" />
    <title>Socket.IO Example</title>
  </head>
  <body>
    <h1>Socket.IO Example</h1>
    <script src="https://cdn.bootcss.com/socket.io/2.0.4/socket.io.js"></script>
    <script>
      var socket = io.connect('wss://aaa.bigfacewo.com/dwss');
      socket.on('message',function(data){
          alert(data)
      })
      socket.on('disconnect', _=>{
        console.log('disconnect..')
        setTimeout(_=>{
          socket.connect()
        }, 1000)
      })
      socket.on('connect', _=>{
        console.log('connect..')
      })
      socket.on('connection', _=>{
          alert('connection');
      })
    </script>

  </body>
</html>
